fixed %s string replacement, fixed iterate over string in javascript mode.