[PATCH] shell32: Reduce code duplication in GetCommandString()