[FYR] modified name recognition algorithm