change 0 to null for inputString fix #2594 and spent 1 hour on #2594