Wrote a function to skip whitespaces