Javascript Replace Text In String Python Documentation Dictionary