Correct row count and lowercase tag input