use replace instead of rstrip as rstrip work on each char and not the string