pub fn is_pow2<T>(bins: T) -> Result<(), String> where
    T: AsRef<str> + Display