Replace undefined vars with strings