Apply specified filters to textbox value
if(val === null || val === undefined){ return ""; } else if(typeof val != "string"){ return val; } if(this.trim){ val = dojo.trim(val); } if(this.uppercase){ val = val.toUpperCase(); } if(this.lowercase){ val = val.toLowerCase(); } if(this.propercase){ val = val.replace(/[^\s]+/g|>, function(word){ return word.substring(0,1).toUpperCase() + word.substring(1); }); } return val;