String trim for new line and tabs

Clean up string to remove spaces, newline, tabs etc.