# utils.stringTrim()

**URL:** <https://forum.servoy.com/t/utils-stringtrim/18022>\
**Category:** Classic Servoy\
**Created:** [June 16, 2014, 8:42am UTC](https://forum.servoy.com/t/utils-stringtrim/18022 "2014-06-16T08:42:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hareendra](https://avatars.discourse-cdn.com/v4/letter/h/77aa72/32.png) [@hareendra](https://forum.servoy.com/u/hareendra)\
**Post date:** [June 16, 2014, 8:42am UTC](https://forum.servoy.com/t/utils-stringtrim/18022/1 "2014-06-16T08:42:16Z")

</div>

I noticed that utils.stringTrim() is deprecated. Is there an alternative?

---

<div class="post-metadata">

**Author:** ![sovanm](https://avatars.discourse-cdn.com/v4/letter/s/a183cd/32.png) [@sovanm](https://forum.servoy.com/u/sovanm)\
**Post date:** [June 16, 2014, 8:59am UTC](https://forum.servoy.com/t/utils-stringtrim/18022/2 "2014-06-16T08:59:51Z")

</div>

Hi Hareendra,

“utils.stringTrim(Object)” has been deprecated. Check what type of argument you are passing to that method.  
If it is a non-string argument it will show that method to be deprecated.

Checked in Servoy version : 7.3.1

Thanks

---

<div class="post-metadata">

**Author:** ![mboegem](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/mboegem/32/4399_2.png) [@mboegem](https://forum.servoy.com/u/mboegem)\
**Post date:** [June 16, 2014, 12:51pm UTC](https://forum.servoy.com/t/utils-stringtrim/18022/3 "2014-06-16T12:51:48Z")

</div>

> hareendra:  
> I noticed that utils.stringTrim() is deprecated. Is there an alternative?

Like sovanm pointed out: probably it is just the type of argument you’re passing that is wrong.  
If you hover over the deprecated command, holding the ALT-key, you will get a tooltip with information about the alternative.
