read file, trim space