truncate url if too long