def readtxt(ifile):
    """ Simple function to read text file and remove clean ends of spaces and \n"""
    with open(ifile, 'r') as f:
        content = f.readlines()
    # remove whitespace characters like `\n` at the end of each line
    content = [x.strip() for x in content]
    return content