timmy
Timmy is a Pascal unit (i.e. library) for creating chat bots
...The unit also provides some other string-related functions, alongside with TStrArray type, which is actually array of string (but it's shorter to call it TStrArray, isn't it?).
Timmy is released under GNU LGPL v3. That means it respects your freedom and you can use it with your program whether if your program is free software or proprietary software.