objstr: Optimize .rstrip() by scanning string from end.