Eliminate last space in URL