Update string calculation mechanisms to use iOS 7 mechanisms and avoid using deprecated approaches.