How to get a value generated, check how many characters it has and remove if necessary? Example: If the value is only 4 characters (eg 1844) it ignores, but if it goes from 4 characters a function removes the characters to only 4, type if it has 6 characters (ex: 184455) remove 2 to only 4 again.