replace the space of input to %20