refactor: Don't return reference string of file name but return it directly.