Removing trailing spaces
Only display first and second link if present