if this.data has some string then remove in jquery code example Example: jquery remove string from string myString.replace('username1','');