Changes onlySpaces regex to skip empty lines w/o whitespaces