Fix #363 by ignoring whitespace characters.

It's all in the title. Now (trailing) whitespace characters are ignored when a user enters a repository URL.