added stringTrim function to trim off white-space characters