Do not get too greedy when stripping class name prefix from Name attribute