title: Does kotlin string has the programmer like Objc static NSString kUrl = @"users/%@/profile";
body: <p>I'm new to kotlin, i encountered a problem, i want to define some constant url strings. And most of the constant strings contain some variables inside the string like: "/users/24/profile". In Objc i can declare the url by</p>
  
  <pre><code>static NSString kUrl = @"/users/%@/profile";
  </code></pre>
  
  <p>and i can give the %@ value when i using it like </p>
  
  <pre><code>[NSString stringWithFormat:kUrl,24]
  </code></pre>
  
  <p>But in kotlin, i don't know if there is something like that. What i know in kotlin is :</p>
  
  <pre><code>const val kUrl = "/users/{0}/profile"
  </code></pre>
  
  <p>and do </p>
  
  <pre><code>kUrl.replace("{0}",24)
  </code></pre>
  
  <p>when i using it. if there are many parameters i will define many placeholder{0},{1} ...., it could be complex.</p>
  
  <p>Thanks for your help!</p>