Optimized code in function generateLinePrefix.