Task #39907: added helper function to remove plural from label