When an entry is tried to be created and the user enters a blank space by mistake the backend can not understand the value and it fails. Trim the values before trying to save the data