Exchanged replace and split args ',' and '\n'