Fix location info for strings

fixes #8081