func replace (var str:String, var replace:Character, var replaced:Character) -> String{
var str1 = ""
println(str)
for Character in str{
var i = Character
if i == replace{
i = replaced
}
str1.append(i)
}
println(str1)
return str1
} // Функция замены символов в строке