Added func mock to get string from file