Add more string functions and tests