Fixed the bug with parsing files and getting str