Getting error when adding two conditions

Are all the names having this apostrophe? Here this symbol is making the expression invalid.

else maybe you can try to split the name and join using + symbol. but it will not be the corerct approach.
Thanks