Alright, thanks for saying about the null value, your event is good, everything's fine.Although, if you want to change the returned null value, here is the changes for returning nothing instead :function trim(strValue){ var str = new String(strValue); return strValue !== null ? str.replace(/(...