changed cut() in Chat