remove unnecessary case regex