Extract the next 18 letters after ABC in a notepad file

Assign: Object reference not set to an instance of an object.
This is the error I am getting and if someone could tell me if the process of the workflow would give the desired output.

@sawemrudula Can you show us what Expression are you using in Assign Activity?

out_text = output.ToString.SubString(out_text.IndexOf(“ABC”)+(“ABC”).Length,18).ToString.Trim
output varibale being the output of the read text file

@sawemrudula What is out_Text variable?