Changed retVal algorithm in getBitfieldString()