Bug Fix: Inadvertently removing leading format when running single test

You were striping white space when you were attempting to restore the file to its original state. So the file was modified and the restore undo was not executing properly. It was being ran with `silent` so you would not see the error message. 

I also used a regex instead of the lstrip when trying to get the line number. 

You may want to rename the functions as well to say it/itonly instead of test/singleTest same for methods.