Updated LittleEndianToBigEndian for line lengths less than 4 words