JavaScript String object : sub() method