fix string for dict lookup