Added getString helper methods and JUnit tests.