var myEventDate = "11/03/2017"; var evd = myEventDate.substr(myEventDate.length - 4); var myTitle0 = "Welcome to Shane's " + evd + " Fundraising Page "; jQuery("#personal_page_header h2").html(myTitle0);