When accepting a string input from javascript, we currently go `&str` to `String` to `StringInput`. Probably there is a more efficient way.