Using Python, create a program to convert the string 'Hello, world!' to titlecase.
"Hello, world!"
import string

def toTitlecase(inputString):
    return inputString.title()

print(toTitlecase("Hello, world!"))