A duality between strings and 5-branes