stringByReplacingQuotes updated

Resolve error when non string parameter is added to attributes.