Helper method to clean up blank attributes