Move stringification inside if-statements.