Converted the isBlock method to use a case insensitive mask and added tests for it.