Add explanative docstring to handle_file_string function and move docstrings to below function definition as per pep 257 specification