use bash built-in operations for stripping strings