I’m not completely sure what you want, but I noticed with position that echo not always give the right position try to build up a large string and then echo the complete results or just return the results.
like this:
$output .= echo $prefix;
$output .= echo $tweetprefix;
$output .= echo $cleaner[0];
$output .= echo $tweetsuffix;
$output .= echo $suffix;
return $output
if you want to do it with echo use comma’s to seperate the strings like this:
echo $string1, $string2, $string3, etc.