Switch to using built-in methods of SnippetString instead of creating own string
Switch to using built-in methods of SnippetString instead of creating own string

Fixes #563.

Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code