Some helpers for parsing of text formats