Fixed errors with string processing.