What do you get if you echo out the values right after getting them?
// vars
$headline = get_sub_field (‘headline’);
$titlealigned = get_sub_field(‘titlealigned’);
$imagealigned = get_sub_field(‘imagealigned’);
// what values are being returned?
echo $titlealigned,':',$imagealigned;