Fix given value '' while reset phase

In the same times,

regex undefined/null will pass the required submit /^.+/
Fix the value 'undefined' 'null' to ''