[fix] added trim to attributes