added some comments. added toUpperCase invocation.