If you want to rename many objects, you may want to make an array and
loop thru the objects. This script requires the user to select what objects he/she wishes to rename, then run the code:
string $allObjs[] = `ls-sl`;
for($x=0;$x<size($allObjs);$x++) {
rename $allObjs[$x] ("haircurves" + $x);
}