On 26/4/22 21:14, alan.gauld at yahoo.co.uk wrote: > Bit operations will be fastest but you could convert to a binary > string and do a character search if you think that is more elegant. Thank you Alan for your reply and it looks like bit shifting is the only real way to solve the problem. -- Regards, Phil