Update regex pattern so whitespace only lines are also removed.