def str_to_dec(string):
	""" Convert a string into decimal value 
	>>> print (str_to_dec("123"))
	123
	>>> print (str_to_dec("0123"))
	123"""
	string = string.lstrip("0")
	if len(string) == 0:
		return 0
	else:
		return eval(string)