fixed typo [tirm() -> trim()]