Trim: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/usr/bin/Trim - from package: edk2-tools-python

You may install the required package with command yum install {package}
Error in other languages:
Trim: bevel nie gevind nie
Trim: comandă negăsită
Trim: comando não encontrado
Trim: commande introuvable
Trim: command not found
Trim: käsku ei ole
Trim: không tìm thấy lệnh
Trim: komanda nerasta
Trim: Kommando nicht gefunden.
Trim: kommandot finns inte
Trim: komut yok
Trim: nie znaleziono polecenia
Trim: níor aimsíodh an t-ordú
Trim: no se encontró la orden
Trim: no s'ha trobat l'ordre
Trim: opdracht niet gevonden
Trim: parancs nem található
Trim: perintah tidak ditemukan
Trim: príkaz nenájdený
Trim: příkaz nenalezen
Trim: команда не найдена
Trim: командата не е открита
Trim: 命令找不到
Trim: コマンドが見つかりません