Optimisation: Use String instead of window.String.

Follows-up 22e28b01e60e87b2454f88ca128fb84916b13564.