I find when creating domain lists that I end up with a mixture of upper and lower cased text which makes it annoying to read.
I also know that one of my domain check tools does not support uppercase letters in its scans.
To get around this, here is a script where you can paste in a test...