Remove unnecessary error trim()  conditional