Trim whitespace from entity title before saving.