Str::limit function error fix