The chain length of biologically produced (R)-3-hydroxyalkanoic acid affects biological activity and structure of anti-cancer peptides.