Add more methods for string class

More test cases for string.h