fixes in class helper and string

class helper: fixed to_i18n for controller
string: added cut_string method