Replace spaces with %20, working for base case with 1 space
Accounting for more than 1 space