Set command ending in the client
String -> &str for common string functions
Improve tests formatting