usage for replace function
var str = "hi there";
str.replace("hi", "hello");