https://www.w3resource.com/w3r_images/java-string-exercise-flowchart-20.png