# GREL length function

**URL:** <https://forum.openrefine.org/t/grel-length-function/1405>\
**Category:** Support and Helpdesk\
**Created:** [March 22, 2024, 11:40am UTC](https://forum.openrefine.org/t/grel-length-function/1405 "2024-03-22T11:40:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zyadtaha](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.openrefine.org/zyadtaha/32/949_2.png) [@zyadtaha](https://forum.openrefine.org/u/zyadtaha)\
**Post date:** [March 22, 2024, 11:40am UTC](https://forum.openrefine.org/t/grel-length-function/1405/1 "2024-03-22T11:40:45Z")

</div>

Why GREL length function considers "zeyad" a big string ? its length is 5 which is not greater than 5.  
Should i open an issue for this ?

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/openrefine/original/1X/5e16f492450b76f909aac4cf95d266e2a8ca5ac0.png)

---

<div class="post-metadata">

**Author:** ![jquartel](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.openrefine.org/jquartel/32/1970_2.png) [@jquartel](https://forum.openrefine.org/u/jquartel)\
**Post date:** [March 22, 2024, 12:10pm UTC](https://forum.openrefine.org/t/grel-length-function/1405/2 "2024-03-22T12:10:19Z")

</div>

I can't reproduce this. Are you sure there aren't any spaces after the letters? Try  
`value.trim().length()` and see if you get the same result.

---

<div class="post-metadata">

**Author:** ![zyadtaha](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.openrefine.org/zyadtaha/32/949_2.png) [@zyadtaha](https://forum.openrefine.org/u/zyadtaha)\
**Post date:** [March 22, 2024, 12:32pm UTC](https://forum.openrefine.org/t/grel-length-function/1405/3 "2024-03-22T12:32:20Z")

</div>

Great! it worked.  
Thanks!
