deleted redundant readFileToString method