I am having issues while creating uipath text and string variable

image

Check if fullname variable has any value. You can do this by adding write line with fullname variable before that assign. Also delete white space between Substring method and that (0,1)