1 screen_splic: function (val) { 2 if (val != '' && val != undefined) { 3 return val.replace(/^(\s|\u00A0)+/,'').replace(/(\s|\u00A0)+$/,''); 4 } 5 }