Replace lstrip().rstrip() with strip().