Prova così:

Codice PHP:
if (trim($PASSWORD) != trim($lettura[2])){
echo 
"[b]PASSWORD ERRATA![/b]";
exit;

Attento a minuscole e maiuscole.