Get theme URL without printing result

Please refer to the codex on this issue of bloginfo()

This always prints a result to the browser. If you need the values for use in PHP, use get_bloginfo().

You should actually also not use either of the two, you should be using get_stylesheet_directory_uri()