Strip whitespace from keys and values