handling bug reports for 2 hours straight is..rather exhausting lol. bed, here I come!
ArrayList<String> usernames; // is a list of usernames inside the current lobby
String chatMessage; // is the chat message being sent
String[] words = chatMessage.split(" "); // a list of words in the chatMessage, separated by strings
for (int i = 0; i < words.length; i++)
{
if (usernames.contains(words[i]))
{
// it's a username
}
}