This function replaces all commonly used line terminating characters (or combination of characters) with a string supplied by the user.
Characters considered line terminators: