More string functions and tests.