Fixed bug in capitalization checks