I have tested the programme on my computer and everything seems to work perfectly. On line 22, I also tried printing out a substring in order to leave the id out, but that doesn't seem to work either. EDIT: I was able to solve the problem. To give a hint to anyone who may face a similar issue, consider this: The startsWith() method does precisely what the name implies: check whether a String starts with the specified String. While this initially seems to be exactly what we are looking for in this task, consider this: if you were to enter "5" as an id, it would also pick up any String starting with "5", such as "51", "534", and so on.