dynamic creation of warning string