Support for parsing SRT data as a String instead of a File.

Split `parse` into `parse_string` and `parse_file`. The `parse` method
chooses which to run based on the input.