Check if string starts with integer

Hi, I would like to check if a string starts with digits, and if yes then add a string in front of it, and if no, replace the non-digit character with a string.

eg. The string either starts with digits (1,2,3) or with a character “G 1”, if it starts with digits, my intended output is “Class 1”, but if it starts with “G”, my intended output is “Group 1”

@inyourgravity

Please find the attached workflow.

Main (8).xaml (5.6 KB)