Kind of sub-title parser by using Ruby