I have the following code to grab a string from a binary file.

```
value = struct.unpack ('<16s', f.read(16))[0]
print 'dispvdn =' + str(value)

```

This is working fine and I am getting the expected value. However when I print a value, of 6 chars for example, I see the entire string length of 16 like so.

dispvdn =40010◦◦◦◦◦◦◦◦◦◦◦

I am wondering if this is a lack of a \0. What would be the best way to terminate or trim this correctly?