Trim whitespace from snippet keyword before saving