remove duplicated comma check from check delimiter code