Problem: I have a lot of files, the files first line should always have 4 spaces before any text. Occasionally some of the files will miss the leading spaces and it's a problem. This is only in the first line.
So if there are 4 spaces then text, do nothing. If there are not 4 spaces, add 4 spaces, then put the text after the aforementioned 4 spaces.
I think I'm close, but I've spent a stupid amount of time googling with little luck.