Week 1
Home Federal Savings Bank
Look at the start of a greeting, not the whole sentence.
A greeting.
One of three amounts.
The question, more slowly
The question is: a greeting decides a fee. A greeting that starts with hello, in any capitalization, costs nothing. A greeting that starts with an h but is not hello costs a middle amount. Everything else costs the large amount.
You are looking at the start of the string, not whether the word appears later. 'Hello, Newman' starts with hello. A sentence that merely contains hello in the middle does not. Strip spaces at the ends and ignore case before you test.
People check 'contains h' before 'starts with hello', so hello gets the middle fee. The more specific test has to win.
Before you code
Say three greetings out loud: a warm hello, something that only starts with the same letter, and something else. Each should land in a different amount.