Rewrite word wrap and moved chatcomponent related methods into own class