Moved the capitalization function to the Helper.js file