fixed issue of input string ""