remove trailing whitespace when reading from config files, closes #20