import re
def get_pascal_case(input_str):
if ' ' not in input_str:
input_str = re.sub(r'(?<=[a-z])(?=[A-Z])', ' ', input_str)
words = input_str.lower().split()
result = ''.join(word.capitalize() for word in words)
return result.replace('_', '')
print(get_pascal_case("get file content"))
print(get_pascal_case("get_file_content"))
print(get_pascal_case("get______file___content"))
print(get_pascal_case("get______file____ content"))
print(get_pascal_case("GET FILE CONTENT"))
print(get_pascal_case("get file content"))
print(get_pascal_case("getFileContent"))
'''
run:
GetFileContent
Getfilecontent
Getfilecontent
GetfileContent
GetFileContent
GetFileContent
GetFileContent
'''