add constant replace, indexof