while () { chomp($_); if (/(.)/) { print "Checkbox$_ \n"; } else { print "  \n"; } } close FH;