Strip leading/trailing whitespace