Added trim to ignores.

Trimming ignore paths before call to empty just in case a newline slips
through or some other undesired whitespace.