Assign power to a string