Fix replacement warnings

Explicitly exclude array? and char