Improved attributes managment and added ltrim and rtrim helpers