Added new processFile method with string to be passed back