Added URL formatting, whitespace is now only trimmed for multiline pastes

Thanks to Matthew O'Riordan for his blog post on matching links with
regex <http://bit.ly/1mlEHm8>