Getting smarter about the string processing