# Value.contains() - Specific request about the beginning

**URL:** <https://forum.openrefine.org/t/value-contains-specific-request-about-the-beginning/912>\
**Category:** Data cleaning and transformations\
**Created:** [August 16, 2023, 12:06pm UTC](https://forum.openrefine.org/t/value-contains-specific-request-about-the-beginning/912 "2023-08-16T12:06:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vuvu960](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.openrefine.org/vuvu960/32/589_2.png) [@vuvu960](https://forum.openrefine.org/u/vuvu960)\
**Post date:** [August 16, 2023, 12:06pm UTC](https://forum.openrefine.org/t/value-contains-specific-request-about-the-beginning/912/1 "2023-08-16T12:06:34Z")

</div>

Hello,

I use this function value.contains("T-") to capture a line who begin by T-  
Exemples (Always directly begin by T) :

T-5 $$$$$$$$$$$$$$$$  
T-21 $$$$$$$$$$$$$

Globally it's working but sometimes if I have a line like this for exemple:

$$$$$$$$$$$$$$$ T-word $$$$$$$$$$$$$$$$$$$

And I don't want this line.

Have you a solution to skip this line ?

Thank you

---

<div class="post-metadata">

**Author:** ![Martin](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.openrefine.org/martin/32/7_2.png) [@Martin](https://forum.openrefine.org/u/Martin)\
**Post date:** [August 16, 2023, 4:18pm UTC](https://forum.openrefine.org/t/value-contains-specific-request-about-the-beginning/912/2 "2023-08-16T16:18:17Z")

</div>

You can use the GREL function `startsWith()` to validate only the beginning of the string - for example, `value.startsWith("T-")`.  
You can refer to our [documentation](https://openrefine.org/docs/manual/grelfunctions#startswiths-sub) for more details.
