Fix behavior to return string if length is shorter or equal than length param.