The regular expression for the mentions seems to be fairly picky about when it does and doesn't
work. Will have to look into it. Might require more JS to handle names that contain spaces.