Three-dimensional black holes and string theory