apply String#freeze for constant literals