I took a look at the rest of the edit, and I think you can basically `s/isSomeString/isNarrowString/` everywhere.