Added a trim_sstring() to remove trailing and leading whitespace.