SyntaxFix
Write A Post
Hire A Developer
Questions
The first one is the correct one, and IMHO the more efficient one, since the second 'solution' instantiates a new string instance.