Trim spaces from URL