JSFiddle - React, Tailwind, and code Playground JavaScript var str = '111:teste'; str = "X"+str.split(':')[1]; $('body').append(str);