added option to get string input from a file