---
schema_version: "1"
id: a0203f79aef6d7d9490d87ed43191befb5c2b4311b6b7f23383a08948a1d865f
title: Case Sensitivity
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/ampscript/guide/language-basics/mc-ampscript-guide-language-basics-case-sensitivity.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/guide/mc-ampscript-guide-language-basics-case-sensitivity.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 8b645b4371a5786be6b31a9ca0c0288c5ffdaa2db55e95bb7bea814ceba3a53c
products:
  - AMPscript for Marketing Cloud
  - Marketing Cloud
---
# Case Sensitivity

AMPscript keywords and function names are case-insensitive. For the purpose of consistency, this documentation uses Pascal case, in which the first letter of each word is capitalized. However, you can use any style you prefer.

For example, all of the variations in the `Replace()` function in this sample are valid and produce the same result.

```
%%[
  Var @variable,
      @stringReplaceLowercase,
      @stringReplaceSentenceCase,
      @stringReplaceUppercase

  Set @variable = "Hello world!"

  /* Note the variations in capitalization in the Replace() function. */
  Set @stringReplaceLowercase = replace(@variable, "world", "friend")
  Set @stringReplaceSentenceCase = Replace(@variable, "world", "friend")
  Set @stringReplaceUppercase = REPLACE(@variable, "world", "friend")
]%%

<table border=1>
  <tr>
    <th>Original text</th>
    <th>Function</th>
    <th>Result</th>
  </tr>
  <tr>
    <td>Hello world!</td>
    <td><code>replace(@variable, "world", "friend")</code></td>
    <td>%%=v(@stringReplaceLowercase)=%%</td>
  </tr>
  <tr>
    <td>Hello world!</td>
    <td><code>Replace(@variable, "world", "friend")</code></td>
    <td>%%=v(@stringReplaceSentenceCase)=%%</td>
  </tr>
  <tr>
    <td>Hello world!</td>
    <td><code>REPLACE(@variable, "world", "friend")</code></td>
    <td>%%=v(@stringReplaceUppercase)=%%</td>
  </tr>
</table>
```

All of the variations in the capitalization of the function name return the same result, which is the phrase "Hello friend!". The resulting output contains this table.

| Original text | Function                                | Result        |
| ------------- | --------------------------------------- | ------------- |
| Hello world!  | `replace(@variable, "world", "friend")` | Hello friend! |
| Hello world!  | `Replace(@variable, "world", "friend")` | Hello friend! |
| Hello world!  | `REPLACE(@variable, "world", "friend")` | Hello friend! |
