Adding Two Javascript Strings Methods In Pythons