[SOLVED] NFC tag, number out of range

Hi

I have a NFC tag reader, that reads sends the tag to a number item.
I’m then trying to make a rule to make access for some tags only.

but some of my tags numbers is out of range for the rule.
Is there a way to reduce the number to maybe 6 numbers instated of 10

here is my rule


rule NCF_Tag_reader

when
Item NFC_Tag changed

then

switch (NFC_Tag.state)

	{

 	case 1111265417:    //This number is OK
 			{
            if(ihc_outlet2.state == OFF)
			{
			ihc_outlet2.sendCommand(ON)
			Thread::sleep(3000)
    		NFC_Tag.sendCommand(0)
            }
				else
				{
				ihc_outlet2.sendCommand(OFF)
				Thread::sleep(3000)
    			NFC_Tag.sendCommand(0)
	
			}
            }
         
   	case 3602618796:   //This number is out of range.
   		{
            if(spisebord_stue.state == 0)
			{
			spisebord_stue.sendCommand(100)
			Thread::sleep(3000)
    		NFC_Tag.sendCommand(0)
            }
				else
				{
				spisebord_stue.sendCommand(0)
				Thread::sleep(3000)
    			NFC_Tag.sendCommand(0)
	
			}
            }
	}
	end

Use toString, which is HUUUUUUUUUUUGE (It’s a Java String)

switch (NFC_Tag.state.toString)
{
    case "1111265417":
    ...
}

Thanks it worked perfect