Prevent duplication of short links
Fix odd spacing in getShortLink()
Remove trailing spaces