Refactored linux adapter, string operations are now refactored into a string helper