jjs> "string".replace("i", "$"); java.lang.StringIndexOutOfBoundsException: String index out of range: 1