Dont substring past end of message