# Turning a set of string to constant case

**URL:** <https://discourse.processing.org/t/turning-a-set-of-string-to-constant-case/33745>\
**Category:** Beginners\
**Created:** [November 25, 2021, 7:13am UTC](https://discourse.processing.org/t/turning-a-set-of-string-to-constant-case/33745 "2021-11-25T07:13:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![it\_begins](https://avatars.discourse-cdn.com/v4/letter/i/bc8723/32.png) [@it\_begins](https://discourse.processing.org/u/it_begins)\
**Post date:** [November 25, 2021, 7:13am UTC](https://discourse.processing.org/t/turning-a-set-of-string-to-constant-case/33745/1 "2021-11-25T07:13:49Z")

</div>

Help needed urgently.  
I have a question that needs to change a set of strings to constant case. That is replacing spaces with underscores, removing punctuations, and capitalizing all letters. using only these string functions: are: charAt(), length(), toUpperCase(), toLowerCase(). The only Character class functions allowed are: isAlphabetic(), isLetter(), isSpaceChar(), isUpperCase(), isLowerCase(), toUpperCase(), toLowerCase().  
Thank you…

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [November 25, 2021, 12:18pm UTC](https://discourse.processing.org/t/turning-a-set-of-string-to-constant-case/33745/2 "2021-11-25T12:18:56Z")

</div>

This topic is cross-posted (related content and urgency) here:

> [@Changing a normal string to camelCase](https://discourse.processing.org/t/changing-a-normal-string-to-camelcase/33744):
>
> Hi, i have to change a set of string to calmelcase i.e removing punctuations and spaces,and capitalizing the first letter of each word… Using only these string functions: charAt(), length(), toUpperCase(), toLowerCase(). The only Character class functions are: e: isAlphabetic(), isLetter(), isSpaceChar(), isUpperCase(), isLowerCase(), toUpperCase(), toLowerCase(). Help needed urgently, thank you in advance.
