replace old function definition ; To avoid show E122 message
string.split('\n') remove new line character;
so I use string.splitelines() to reserve it.