- The world "string" means finite sequence of characters, possibly including spaces and punctuation. The word literal means with a value specified directly in source code. Therefore a literal string is a finite sequence of characters (possibly including spaces and punction) specified directly in source code.