Adds trimString method