bidib: check string if its valid