adding unit tests for string manipulation code.