









Trim the Leading and Trailing Spaces in a Given String
This functionality is not currently available in Javascript. However, tou can add this function to perform trimming in the strings. Trimming is useful in checking for empty spaces. function RTrim(str){