String manipulation unit tests complete. Also various fixes around string functions