Solve the problem of input string of previous version,which cannot read input string correctly.