# Motoko Type Text methods uppercase and lowercase

**URL:** <https://forum.dfinity.org/t/motoko-type-text-methods-uppercase-and-lowercase/5938>\
**Category:** Language Support\
**Created:** [July 16, 2021, 1:31pm UTC](https://forum.dfinity.org/t/motoko-type-text-methods-uppercase-and-lowercase/5938 "2021-07-16T13:31:26Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Ori](https://avatars.discourse-cdn.com/v4/letter/o/ecae2f/32.png) [@Ori](https://forum.dfinity.org/u/Ori)\
**Post date:** [July 16, 2021, 5:42pm UTC](https://forum.dfinity.org/t/motoko-type-text-methods-uppercase-and-lowercase/5938/2 "2021-07-16T17:42:44Z")

</div>

For the moment you can do this:

```auto
import Text "mo:base/Text";
import Prim "mo:prim";

let message = "HeLLo";

let x = Text.map(message , Prim.charToLower);
let y = Text.map(message , Prim.charToUpper);

```

Note you generally shouldn’t use this Prim import (it’s internal and subject to change) but those functions aren’t yet exposed in the base library, I’m sure they will be soon.

---

_[View the full topic](https://forum.dfinity.org/t/motoko-type-text-methods-uppercase-and-lowercase/5938)._
