Note: When five consecutive "1" bits occur in any part of the frame other than the beginning and ending flag, the sending station inserts an extra "0" bit. When the receiving station detects five "1" bits followed by a "0" bit, it removes the extra "0" bit, thereby restoring the bit stream to its original value.
Source: from Federal Standard 1037C