You can use the C++ function substr to get the first N characters from the string that is returned by get_name(), or you can use the C function strncmp to compare the first N characters of the string.
Nice surprise about this shorter form. Can you tell us what it is you are talking/writing about?
Has any info. about this shorter form been posted before (and i just missed it)?