Add some whitespace-trimming functions