getSpaces method Null safety

String getSpaces(
  1. int length
)