remove newlines when reading file