Only apply prefix if $tableName is a string