Fixed Bugs for AttrFromString