replace string space with %20 then print it