Refactor FileParser to use nice :split method with regex as suggested by joelq