Spaceless helper for trimming whitespace