Android - Checking if a word from file matches a random character string from EditText : Hello everyone :) Would just like to ask how can i see if set of random characters from String of EditText matches a certain word from file

for example

EditText input: TINARSE
Can match word like NASTIER, STAINER.
Suppose a word in file is denoted by i. 

I know how read strings from file just cant figure out how to match it with the random character input using IF statements. 

**Note: Length of string should be same as length EditText**

Thanks in Advance! :)