improved title parser to be more strict