input updt, fix space character ignoring by dom