Trim the Attributes and check if them are empty