SourceFormatter - No need to use regex
SourceFormatter - Remove unused var
SourceFormatter - Apply same logic to other method