write a method to replace all space in string with"%20"