[Sed] limit replaced string to 300 chars