Auto detect whitespace on file load