Suppose I have string variable such as:
var a = "xxxxxxxxhelloxxxxxxxx";
or:
var a = "xxxxhelloxxxx";
I want to insert "world" after "hello".
I can't use substr() because the position is not known ahead of time. How can I do this in JavaScript or jQuery?