Useful extensions for Pharo
# Nucleus-Pharo-Extensions
Useful **extensions for Pharo** from [Nucleus](https://github.com/astares-nucleus/Nucleus) project - written by Dipl.-Inf. Torsten Bergmann ([astares.com](https://www.astares.com))
[](https://www.astares.com)
[](https://www.pharo.org)
[](https://github.com/astares-nucleus/Nucleus-Pharo-Extensions/actions/workflows/build.yml)
[](https://codecov.io/gh/astares-nucleus/Nucleus-Pharo-Extensions)
[](https://pharo.org/download)
# Overview
## Installation
```Smalltalk
Metacello new
baseline:'NucleusPharoExtensions';
repository: 'github://astares-nucleus/Nucleus-Pharo-Extensions:main/src';
load
```
## Extensions
### Extensions to String
#### #withBlanksRemoved
[Pharo](http://www.pharo.org) provides a method **#withBlanksCondensed** removing the leading and trailing blanks. The projects adds another method **#withBlanksRemoved** removing all blanks:
```Smalltalk
' Hello World ' withBlanksRemoved
```
returns
```
'HelloWorld'
```
#### #isAllUppercase
With the additional method **#isAllUppercase** you can check for the string to include only uppercase characters:
```Smalltalk
'HELLOWORLD' isAllUppercase
```
Be aware: when the string includes a space this already is a non-uppercase character and the method will return false.