input: Write a python function to truncate a given string to a specified length.
  assert truncateString('Hello World', 5) == 'Hello'
  assert truncateString('Python Programming', 6) == 'Python'
  assert truncateString('Data Science', 4) == 'Data'
output: def truncateString(s, length):
      return s[:length]