Added readFromString() to Swift global base template