Fixed trim() call