bugfix: didn't trim url input

Change-Id: Id47747fb3cd45e53604c3355fec03369d847612f
tower: https://tower.im/projects/d4e0ff64158645f28d99a9ca72d0c27b/todos/6b6e5e10a04347c2887c415a6020dbfe/