Working with strings for dataInput and dataOutput