While I don’ t necessarily see the problem, your code doesn’t seem to be the most useful way of trying to find it. I wonder if your name has one or more trailing spaces? Does something like this help track it down?
func _on_Area2D_kts_body_entered(body):
var name = body.get_parent().get_parent().get_name()
print(">" + name + "<")
if name != "map":
print("name is not map")