Removed trailing whitespace
Fixed custom fields to be updated and not appended when editing a post