fix replace lowercasing