# How to clean up a string in Yeeflow?

**URL:** <https://community.yeeflow.com/t/how-to-clean-up-a-string-in-yeeflow/348>\
**Category:** Ask the community\
**Created:** [November 28, 2024, 3:03am UTC](https://community.yeeflow.com/t/how-to-clean-up-a-string-in-yeeflow/348 "2024-11-28T03:03:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mauro.roa](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.yeeflow.com/mauro.roa/32/377_2.png) [@mauro.roa](https://community.yeeflow.com/u/mauro.roa)\
**Post date:** [November 28, 2024, 3:03am UTC](https://community.yeeflow.com/t/how-to-clean-up-a-string-in-yeeflow/348/1 "2024-11-28T03:03:49Z")

</div>

Hi everyone,

I’m working on a form in Yeeflow and I’m facing an issue with cleaning up a string. Specifically, I have a calculated field that returns a string in the following format:

[“[https://img.yeeflow.com/1c1dtpKwGI](https://img.yeeflow.com/1c1dtpKwGI)”]

My goal is to clean this string so that it only contains the URL without the brackets or quotes, like this:

[https://img.yeeflow.com/1c1dtpKwGI](https://img.yeeflow.com/1c1dtpKwGI)

I’ve tried using the `Replace()` function, but I’m not sure if I’m doing it correctly or if there’s a better approach. Does anyone know the best way to handle this in Yeeflow? Any tips or examples would be greatly appreciated.

Maybe a function GetFromArray is needed…

Thank you!

---

<div class="post-metadata">

**Author:** ![mauro.roa](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.yeeflow.com/mauro.roa/32/377_2.png) [@mauro.roa](https://community.yeeflow.com/u/mauro.roa)\
**Post date:** [November 28, 2024, 3:42am UTC](https://community.yeeflow.com/t/how-to-clean-up-a-string-in-yeeflow/348/2 "2024-11-28T03:42:07Z")

</div>

Alternatively: How can I properly use the Image control with the Calculation option to display images dynamically?

---

<div class="post-metadata">

**Author:** ![frank](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@frank](https://community.yeeflow.com/u/frank)\
**Post date:** [November 28, 2024, 11:47pm UTC](https://community.yeeflow.com/t/how-to-clean-up-a-string-in-yeeflow/348/3 "2024-11-28T23:47:31Z")

</div>

Hi Mauro,

There’re two functions may help,

**getAttr** (imgVar, 0) can be used to get the first element of an array.

**join** (imgVar), returns a string by combining all the elements in the array with either commas or a specified separator string. It will return “[https://img.yeeflow.com/1c1dtpKwGI](https://img.yeeflow.com/1c1dtpKwGI)” in your case as the array only has one element.

And regarding the second question, you can use Dynamic image control, which accepts variables or formula result as the input. And this control can use an array variable directly without other processing.

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/yeeflow/original/1X/f0cec315de1e20973e981187ca3ee0fc7736240f.png)

---

<div class="post-metadata">

**Author:** ![mauro.roa](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.yeeflow.com/mauro.roa/32/377_2.png) [@mauro.roa](https://community.yeeflow.com/u/mauro.roa)\
**Post date:** [December 6, 2024, 11:49pm UTC](https://community.yeeflow.com/t/how-to-clean-up-a-string-in-yeeflow/348/4 "2024-12-06T23:49:58Z")

</div>

Hi Frank:

I’m working on displaying a product-related image in a sublist using the image control with calculation mode. However, I’m unable to get the image to display, even when using a direct Yeeflow picture URL.

Could you please advise on how to resolve this issue?

Thank you.

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/yeeflow/original/1X/8cd2b820c11fca561ac20218954ad0d7c989987c.png)

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/yeeflow/original/1X/2fdf38c3d3d0d9e316651441359a9bdea0d9a1ee.png)

---

<div class="post-metadata">

**Author:** ![mauro.roa](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.yeeflow.com/mauro.roa/32/377_2.png) [@mauro.roa](https://community.yeeflow.com/u/mauro.roa)\
**Post date:** [December 11, 2024, 6:58pm UTC](https://community.yeeflow.com/t/how-to-clean-up-a-string-in-yeeflow/348/5 "2024-12-11T18:58:51Z")

</div>

@frank , please, your help…

---

<div class="post-metadata">

**Author:** ![frank](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@frank](https://community.yeeflow.com/u/frank)\
**Post date:** [December 16, 2024, 9:32am UTC](https://community.yeeflow.com/t/how-to-clean-up-a-string-in-yeeflow/348/6 "2024-12-16T09:32:17Z")

</div>

Hi Mauro,

You need to use Image control to display an image in a sublist. If you want to do more customization of how the image is displayed, you can try the new feature “Dynamic content layout” of Sublist, which allows users to customize row layout similarly to Collection.

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/yeeflow/original/1X/b67c0ce80266c8b2edd854ae0c2953fee86e50b5.png)

Drag an dynamic image control into Sublist and then set the image to the column of current object.

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/yeeflow/original/1X/e1aada477aa1fb48499e11cf72b1167abf952194.png)
