simplify warning string