Bit field from array and string