modify sendMessage() to process color replacement codes; ie. %green%, %red%, etc