Remove the spaces.
e.g. to reply to "Long User Name", you'd mention @longusername
See How do comment @replies work?How do comment @replies work? for more details, specifically (emphasis mine):
- Take the first word immediately following the @, where the word boundary is determined by a space, a character not valid in user names (such as : , / ! ?) or the end of the comment.
- Remove one trailing dot . from the resulting string if applicable (and if the string has more than two characters).
- If the remaining string ends in ' or 's, remove that piece from the string.
- The resulting string will be matched against the user name with spaces removed.