Reading the file with triming options