Removes non BF characters and resizes 'array'.