remove manual getStringFromFile function