Edit: that was my mistake. i placed the codes in wrong line. i solved it by myself already. thanks for viewing.

Take 62 to 73 out of the loop so they won't display for each character you are checking.

i am actually trying to figure out how to display the sentences properly. can you please tell me how to do it?

EDIT: i solved it by myself already i just placed line 62 to 73 after the loop , thank you anyway

Sorry, perhaps I wasn't clear, my fault. Move them out of the for loop and into the main body of the ValidPassword() function.