Fix strings when tab is a file