import io


def data_read(filename):
    """Read string from a file with leading and trailing whitespace removed.

    :param ``str`` filename:
        File to read from.
    :returns ``str``:
        File content.
    """
    with io.open(filename) as f:
        data = f.readline()
    return data.strip()