altered scanId function to adhere to MP_IDENTIFIER regex rule