Trim whitespace in links

fixes #148