Moved sanitizeString to javascript-helpers.js