Make sure we check for lower AND upper case prefix

Fixes #3.