Implemented new helper method for string, and added tests