Fix socket module trailling string