New Java class that performs different kinds of string operations. Added method for in-place trim of strings with any number of spaces