I'm trying to create a small program for my homework and so far I made a GUI using Tkinter but I have trouble creating code that can make the program identify a long word.

How do I make the program understand and identify a long word/string?

This is my code so far:

```
import tkinter as tk
import tkinter.messagebox as tkm

def show_name():
    string = entry1.get()
    tkm.showinfo('Longer String', string)

window = tk.Tk()
window.geometry('300x300')

label1 = tk.Label(window, text='String 1')
label1.pack()

entry1 = tk.Entry(window)
entry1.pack()

label2 = tk.Label(window, text='string 2')
label2.pack()

entry2 = tk.Entry(window)
entry2.pack()

label3 = tk.Label(window, text='string 3')
label3.pack()

entry3 = tk.Entry(window)
entry3.pack()

button2 = tk.Button(window, text='Identify longer string', command=show_name)
button2.pack()

window.mainloop()

```