If these test cases are representative of what the code would actual run on, 
then these suggestions are fine. If you can have arbitrarily long strings 
though, you should pull phrase.strip out into a variable, since it's linear 
time and you're running it twice on nonempty input and checking equality twice 
on white space characters.

Reply via email to