remove chr from FOREACH