Added file to string function