Rename Coordinate System

Hi guys!!

while working with coordinate system in part layout,we 've to rename the CS manually,which cause some blank spaces in front & rear of the CS name due to human typing errors.

so I want some kind of common Macros which commonly kill these painful blank spaces.

can we use some sort of Trim or Replace command for this issue.

plz guys help me with this.

thanx in advance...

SolidworksApi macros