str StripColorCodes(str s)
Removes all colorcodes from the string and returns the result.
StripColorCodes("\cghello") -> "hello" StripColorCodes("hello\cg\cb\c[red]hello") -> "hellohello"
Use it to strip colorcodes from player names:
print(s:StripColorCodes(PlayerName(X)));