Remove whitespace and test word casing against last word