Made String.prototype.indexOf
spec compliant.
#597
Merged
String.prototype.indexOf
spec compliant.
#597