"Reverting to fscanf version so it's easy to test what happens if scanf is used instead"

This reverts commit 4ea2081bfe30f22e834e0a4712247627ad5ea225.
Made a function that would strip out whitespace. Think this is safe although I'll need to think how I'd get rid of that first for loop