get the name of the component

Component2.Name2 returns a name that includes an instancenumber. For example:
Part1-1
and if Part1-1 is in an assembly:
subAssem1-2/Part1-1

how can i do to get only Part1?
thanks!

SolidworksApi macros