Change "trim.isEmpty" with "!=="