use strip instead of rstrip and lstrip