fixed the btn snippet to have a getString statement