OpenLayers.String.format won't be found ...
Either you import it (if required) or just drop it.