Add string is rotation function