Extracting useful chars from a string into compact chunk
add to String class a trim method removing all whitespaces