Reduce whitespace by compressing strings that are only whitespace