# Storing a string in alphabetical order

It is easy to use the ALPHA routine along with a tJava component, to check whether a string is in alphabetical order:

```
System.out.println(StringHandling.ALPHA("abcdefg"));
```

The check returns a boolean value.

![The result is "true" in the Run view.](https://help.qlik.com/talend/en-US/studio-user-guide/Resources/images/routines6-1.png)