# Why does Studio::CommandReplay::getCommandString behave differently?

**URL:** <https://qa.fmod.com/t/why-does-studio-getcommandstring-behave-differently/18982>\
**Category:** FMOD Studio\
**Created:** [July 8, 2022, 2:17am UTC](https://qa.fmod.com/t/why-does-studio-getcommandstring-behave-differently/18982 "2022-07-08T02:17:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Speak4Erase](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@Speak4Erase](https://qa.fmod.com/u/Speak4Erase)\
**Post date:** [July 8, 2022, 2:17am UTC](https://qa.fmod.com/t/why-does-studio-getcommandstring-behave-differently/18982/1 "2022-07-08T02:17:18Z")

</div>

In other FMOD functions that return a string, the length of the string is always passed back as an optional argument (like `Studio::Bank.getStringInfo`) but `Studio::CommandReplay::getCommandString` does not do this. I’m wondering why this is the case?

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [July 11, 2022, 6:55am UTC](https://qa.fmod.com/t/why-does-studio-getcommandstring-behave-differently/18982/2 "2022-07-11T06:55:59Z")

</div>

Hi,

There isn’t any specific reason why they return a different result. They were just designed differently.

Hope this helps!
