Change ordinal endings to non-capturing patterns