Strip spaces from input parameters

Spaces in ONS series inputs were being passed through to the URL and
causing an error.