small rework of string::operator*
Rework slice to normalize slice writing and avoid code duplication
Remove compilation warning for truncate function
Remove compilation warning about numpy depreciate API