well i think for lc properties, you can shorten it more with using $regsubex... theres no need for a loop