WordPress Translation Issue

You are exploding the text with explode( ' ', $ctxttext ).
Therefore you are translating word by word, not strings.
That is why it’s working with single word string, and not with multiple words.

When you call First Name you are translating First and Name.

Cheers