Trim input field before adding
onEnter -> onenter for consistency with onblur