trim and idiomize