Update interval() and add typeOfString