Fixed bugs in string implementation and added unit tests for string interface