Intern constant strings

I suggest wrapping these as a function to hide `internedStrings` map and remove duplicated code.