Chat fix/optimization

Switching replace first with substring(1) - We just cut the first letter anyway, and replacefirst(".") is a regex - removes first letter what so ever (Although we do know its a dot anyway...). Substring is better in this case.

Sorry about all the different pull requests - working through a browser, don't think there's a way to put multiple files in one pull request through this interface.