add extensions for String and CGPoint