class Solution(object): def replaceSpaces(self, s): """ :type s: str :rtype: str """ return "%20".join(s.split(" "))