How can I eliminate unnecessary character in the submitted form?