Why is a string being returned here?