created function to remove trailing and leading white spaces