Sample code for allowing trimming of any set of chars + all whitespaces in a simple single call.