Refactor and add tests for Whitespace an. metric.
Remove whitespaces, add last empty line.

The resource files must contain leading or trailing spaces.
Causes an error while creating an URIs from file's strings.