Fix wrong string cutting

1 job for dev_pep8 in 47 seconds (queued for 2 seconds)