Text changing

added algorithm to change the code