insert string at index
find x to the power y